import rules from '@/utils/rules'
export { theadList1, theadList2, statusArr, operationButtons1, operationButtons2, PAEType, PAEContent, dialogLeftTop1_1_data_rules, treatmentInfo_rules, baseInfo_rules, anesthesiaEvaluation_rules }
const theadList1 = [
  {
    label: 'patientName',
    text: '患者姓名'
  },
  {
    label: 'sexShow',
    text: '性别'
  },
  {
    label: 'age',
    text: '年龄'
  },
  {
    label: 'medicare',
    text: '就诊卡号'
  },
  {
    label: 'idCard',
    text: '身份证号'
  },
  {
    label: 'doctorName',
    text: '预约医生'
  },
  {
    label: 'operationName',
    text: '预约手术'
  },
  {
    label: 'schedule',
    text: '预约手术时间'
  },
  {
    label: 'phone',
    text: '联系电话'
  }
]
const theadList2 = JSON.parse(JSON.stringify(theadList1))
theadList2.push({
  label: 'dealResult',
  text: '状态',
  valueMap: [
    { key: 0, value: '转挂号' },
    { key: 1, value: '转院内预约' },
    { key: 2, value: '取消预约' }
  ]
})
const operationButtons1 = [
  {
    name: 'add',
    text: '预约处理',
    id: 0,
    router: '/appointmentConfirm/appointmentDeal',
    type: 'primary'
  },
  {
    name: 'delete',
    text: '退出日间',
    id: 1,
    type: 'danger'
  },
  {
    name: 'add2',
    text: '调阅病例',
    router: '/case/case',
    id: 2,
    type: 'warning'
  }
]
const statusArr = ['已取消', '已确认']
const operationButtons2 = [
  {
    name: 'add',
    text: '重新预约',
    id: 0,
    type: 'primary'
  }
]
const PAEContent = [
  {
    'label': '宣教内容1',
    'value': '1'
  },
  {
    'label': '宣教内容1',
    'value': '2'
  },
  {
    'label': '宣教内容1',
    'value': '3'
  }
]
const PAEType = [
  {
    'label': '宣教类型1',
    'value': '1'
  },
  {
    'label': '宣教类型2',
    'value': '2'
  },
  {
    'label': '宣教类型3',
    'value': '3'
  }
]
const dialogLeftTop1_1_data_rules = {
  anesthetistType: [
    { required: true, message: '请选择拟行麻醉', trigger: 'change' }
  ],
  doctorId: [
    { required: true, message: '请选择主刀医生', trigger: 'change' }
  ],
  doctorTel: [
    { required: true, message: '请输入联系电话', trigger: 'change' },
    rules.phone
  ],
  operationId: [
    { required: true, message: '请输入手术名称', trigger: 'change' }
  ],
  operationNo: [
    { required: true, message: '请输入手术名称', trigger: 'change' }
  ],
  operationSide: [
    { required: true, message: '请输入侧别', trigger: 'change' }
  ],
  beforeDiagnosis: [
    { required: true, message: '请输入术前诊断', trigger: 'change' }
  ]
}
const treatmentInfo_rules = {
  medicare: [
    { required: true, message: '请输入就诊卡号', trigger: ['blur', 'change'] }
  ],
  patientName: [
    { required: true, message: '请输入患者姓名', trigger: ['blur', 'change'] }
  ],
  phone: [
    { required: true, message: '请输入手机号码', trigger: ['blur', 'change'] },
    rules.phone
  ],
  idCard: [
    { required: true, message: '请输入身份证号', trigger: ['blur', 'change'] },
    rules.idCard
  ],
  visitDoctor: [
    { required: true, message: '请输入就诊医生', trigger: ['blur', 'change'] }
  ],
  diagnosis: [
    { required: true, message: '请输入诊断', trigger: ['blur', 'change'] }
  ]
}

const baseInfo_rules = {
  'patient.patientName': [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  'patient.phone': [
    { required: true, message: '此项不能为空', trigger: 'change' },
    rules.phone
  ],
  'patient.sex': [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  'patient.idCard': [
    { required: true, message: '此项不能为空', trigger: 'change' },
    rules.idCard
  ],
  'patient.age': [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  'patient.birthday': [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  'patient.liveAreaId': [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  anesthetistId: [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  anesthetistTel: [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ],
  schedule: [
    { required: true, message: '此项不能为空', trigger: 'change' }
  ]
}

const anesthesiaEvaluation_rules = {
  anaesthesiaType: [
    { required: true, message: '必填项不能为空', trigger: 'change' }
  ],
  subAnaesthesia: [
    { required: true, message: '必填项不能为空', trigger: 'change' }
  ],
  anesthetistName: [
    { required: true, message: '必填项不能为空', trigger: 'change' }
  ],
  analgesiaType: [
    { required: true, message: '必填项不能为空', trigger: 'change' }
  ]
}
